$(function () {


    //表格初始加载
    $('#grid_goodses_detail').datagrid({
        url: $.webPath() + '/tjbb/ddcx/ddcxdetail_goodsesmx?id=' + $("[name='jydd_name']").val() ,
        fitColumns: false,
        singleSelect: true,
        fit: true,
        checkbox: true,
        checkOnSelect: false,
        selectOnCheck: false,
        showFooter: true,
        columns: [
            [
                {field: 'purchase_contract_no', title: '采购合同号', hidden: true, width: 100},
                {field: 'production_contract_no', title: '生产合同号', width: 100, align: 'center'},
                {field: 'spec_id', title: '商品id', width: 100, align: 'center'},
                {field: 'goods_name', title: '商品名称', width: 100, align: 'center'},
                {field: 'price', title: '价格', width: 100, align: 'center'},
                {field: 'real_price', title: '实际价格', width: 100, align: 'center'},
                {field: 'quantity', title: '数量', width: 100, align: 'center'},


            ]
        ]


    });
})





